package com.zhangxi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhangxi
 * @create 2024-04-17 20:26
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder //让实体类使用构造者模式创建对象
public class Employee implements Serializable {
    //该字段的主要作用是用于在反序列化时检查类的版本是否与序列化时的版本一致，
    //以确保反序列化的对象与序列化时的对象是兼容的
    private static final long serialVersionUID =1L;

    private Long id;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    private String idNumber;

    private Integer status;

    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;




}
